#include "WorkUnitGroup.h"

namespace ComputingObjects
{

WorkUnitGroup::WorkUnitGroup(std::string id, WorkUnitGroupParams& params)
	: WorkUnit(id, params)
{
}

WorkUnitGroup::~WorkUnitGroup()
{
}

void WorkUnitGroup::compute()
{
	std::set<SharedWorkUnit>::iterator anIT = myWorkUnits.begin();
	while (anIT != myWorkUnits.end())
		(*anIT)->compute();
}

}
